package com.eascs.workflow.exception.dubbo;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.workflow.common.entity.exception.JSErrorEntity;
import com.eascs.workflow.common.service.ProxyMongoService;
import com.eascs.workflow.common.service.exception.CatchJSException;
import com.eascs.workflow.common.vo.ModelResult;

@Service
public class CatchJSExceptionDubboImpl implements CatchJSException {

	@Autowired
	ProxyMongoService proxyMongoService;

	@Override
	public ModelResult<Boolean> insert(JSErrorEntity jsError) {
		proxyMongoService.insert(jsError);
		return new ModelResult<Boolean>().withModel(Boolean.TRUE);
	}

}
